package com.example.zqq.mysnake.Http;

import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;

import java.util.HashMap;

/**
 * Created by Dino on 2017/1/6.
 */

public class ApiItem {
    /**
     * url : http://192.168.31.118:8080/user/activity/find
     * body : {"page":1,"pageSize":3}
     * type : POST
     * token :
     * dataType : json
     * done : window.callBacks.callBack1509588836880.done
     * fail : window.callBacks.callBack1509588836880.fail
     */

    @SerializedName("url")
    @Expose
    private String url;
    @SerializedName("body")
    @Expose
    private HashMap<String,String> body;
    @SerializedName("type")
    @Expose
    private String type;
    @SerializedName("token")
    @Expose
    private String token;
    @SerializedName("dataType")
    @Expose
    private String dataType;
    @SerializedName("done")
    @Expose
    private String done;
    @SerializedName("fail")
    @Expose
    private String fail;

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public HashMap<String, String> getBody() {
        return body;
    }

    public void setBody(HashMap<String, String> body) {
        this.body = body;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getDataType() {
        return dataType;
    }

    public void setDataType(String dataType) {
        this.dataType = dataType;
    }

    public String getDone() {
        return done;
    }

    public void setDone(String done) {
        this.done = done;
    }

    public String getFail() {
        return fail;
    }

    public void setFail(String fail) {
        this.fail = fail;
    }


    //    @SerializedName("name")
//    @Expose
//    private String name;
//    @SerializedName("src")
//    @Expose
//    private String src;
//
//    @SerializedName("requestEncrypt")
//    @Expose
//    private boolean requestEncrypt;
//    @SerializedName("responseEncrypt")
//    @Expose
//    private boolean responseEncrypt;
//    @SerializedName("requestDataType")
//    @Expose
//    private String requestDataType;
//    @SerializedName("responseDataType")
//    @Expose
//    private String responseDataType;
//    @SerializedName("resultEncoding")
//    @Expose
//    private String resultEncoding;
//    @SerializedName("paramEncoding")
//    @Expose
//    private String paramEncoding;
//    @SerializedName("method")
//    @Expose
//    private String method;
//    @SerializedName("needToken")
//    @Expose
//    private boolean needToken;
//    @SerializedName("params")
//    @Expose
//    private HashMap<String, Object> params;
//
//    @SerializedName("callbackName")
//    @Expose
//    private String callbackName;
//
//
//    @Override
//    public String toString() {
//        return "ApiItem{" +
//                "name='" + name + '\'' +
//                ", src='" + src + '\'' +
//                ", requestEncrypt=" + requestEncrypt +
//                ", responseEncrypt=" + responseEncrypt +
//                ", requestDataType='" + requestDataType + '\'' +
//                ", responseDataType='" + responseDataType + '\'' +
//                ", resultEncoding='" + resultEncoding + '\'' +
//                ", paramEncoding='" + paramEncoding + '\'' +
//                ", method='" + method + '\'' +
//                ", needToken=" + needToken +
//                ", params=" + params +
//                ", callbackName='" + callbackName + '\'' +
//                '}';
//    }






//    @SerializedName("url")
//    @Expose
//    private String url;
//
//    @SerializedName("params")
//    @Expose
//    private HashMap<String, Object> params;
//
//    @SerializedName("body")
//    @Expose
//    private String body;
//
//    @SerializedName("type")
//    @Expose
//    private boolean type;
//
//    @SerializedName("token")
//    @Expose
//    private boolean responseEncrypt;
//
//    @SerializedName("dataType")
//    @Expose
//    private String dataType;
//    @SerializedName("done")
//    @Expose
//    private String done;
//    @SerializedName("fail")
//    @Expose
//    private String fail;


}
